package morphia.spring;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 
 * {@link com.google.code.morphia.Morphia} injecter.<br/>
 * Usage:<div style="color:#515151">
 * &nbsp;&nbsp;&nbsp;&nbsp;&#64;MorphiaDef(mapPackages = &quot;package.of.class.wanna.map&quot;)<br/>
 * &nbsp;&nbsp;&nbsp;&nbsp;private {@link com.google.code.morphia.Morphia} morphia;</div>
 * @author Kent Yeh
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
@Documented
@Inherited
public @interface MorphiaDef {

    /**
     * equals {@link #mapPackages() }
     */
    String[] value() default {};

    /**
     * Tries to map all classes in the package specified
     */
    String[] mapPackages() default {};
    /**
     * Those classes you wanna map.
     */
    Class<?>[] mapClass() default {};
}
